package com.vastcom.sigma.admin.model;

import javax.persistence.Basic;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import java.sql.Date;

@Entity
public class Encapsulation {
    private String encapsulationid;
    private String scpc;
    private String encapsulationsortid;
    private Double bakebeantotal;
    private String bcdbdid;
    private String bcmc;
    private Integer bcsl;
    private Integer cpsl;
    private String fzry;
    private String proid;
    private String clqk;
    private Date fzsj;

    @Id
    @Column(name = "encapsulationid")
    public String getEncapsulationid() {
        return encapsulationid;
    }

    public void setEncapsulationid(String encapsulationid) {
        this.encapsulationid = encapsulationid;
    }

    @Basic
    @Column(name = "scpc")
    public String getScpc() {
        return scpc;
    }

    public void setScpc(String scpc) {
        this.scpc = scpc;
    }

    @Basic
    @Column(name = "encapsulationsortid")
    public String getEncapsulationsortid() {
        return encapsulationsortid;
    }

    public void setEncapsulationsortid(String encapsulationsortid) {
        this.encapsulationsortid = encapsulationsortid;
    }

    @Basic
    @Column(name = "bakebeantotal")
    public Double getBakebeantotal() {
        return bakebeantotal;
    }

    public void setBakebeantotal(Double bakebeantotal) {
        this.bakebeantotal = bakebeantotal;
    }

    @Basic
    @Column(name = "bcdbdid")
    public String getBcdbdid() {
        return bcdbdid;
    }

    public void setBcdbdid(String bcdbdid) {
        this.bcdbdid = bcdbdid;
    }

    @Basic
    @Column(name = "bcmc")
    public String getBcmc() {
        return bcmc;
    }

    public void setBcmc(String bcmc) {
        this.bcmc = bcmc;
    }

    @Basic
    @Column(name = "bcsl")
    public Integer getBcsl() {
        return bcsl;
    }

    public void setBcsl(Integer bcsl) {
        this.bcsl = bcsl;
    }

    @Basic
    @Column(name = "cpsl")
    public Integer getCpsl() {
        return cpsl;
    }

    public void setCpsl(Integer cpsl) {
        this.cpsl = cpsl;
    }

    @Basic
    @Column(name = "fzry")
    public String getFzry() {
        return fzry;
    }

    public void setFzry(String fzry) {
        this.fzry = fzry;
    }

    @Basic
    @Column(name = "proid")
    public String getProid() {
        return proid;
    }

    public void setProid(String proid) {
        this.proid = proid;
    }

    @Basic
    @Column(name = "clqk")
    public String getClqk() {
        return clqk;
    }

    public void setClqk(String clqk) {
        this.clqk = clqk;
    }

    @Basic
    @Column(name = "fzsj")
    public Date getFzsj() {
        return fzsj;
    }

    public void setFzsj(Date fzsj) {
        this.fzsj = fzsj;
    }

    @Override
    public boolean equals(Object o) {
        if (this == o) return true;
        if (o == null || getClass() != o.getClass()) return false;

        Encapsulation that = (Encapsulation) o;

        if (encapsulationid != null ? !encapsulationid.equals(that.encapsulationid) : that.encapsulationid != null)
            return false;
        if (scpc != null ? !scpc.equals(that.scpc) : that.scpc != null) return false;
        if (encapsulationsortid != null ? !encapsulationsortid.equals(that.encapsulationsortid) : that.encapsulationsortid != null)
            return false;
        if (bakebeantotal != null ? !bakebeantotal.equals(that.bakebeantotal) : that.bakebeantotal != null)
            return false;
        if (bcdbdid != null ? !bcdbdid.equals(that.bcdbdid) : that.bcdbdid != null) return false;
        if (bcmc != null ? !bcmc.equals(that.bcmc) : that.bcmc != null) return false;
        if (bcsl != null ? !bcsl.equals(that.bcsl) : that.bcsl != null) return false;
        if (cpsl != null ? !cpsl.equals(that.cpsl) : that.cpsl != null) return false;
        if (fzry != null ? !fzry.equals(that.fzry) : that.fzry != null) return false;
        if (proid != null ? !proid.equals(that.proid) : that.proid != null) return false;
        if (clqk != null ? !clqk.equals(that.clqk) : that.clqk != null) return false;
        if (fzsj != null ? !fzsj.equals(that.fzsj) : that.fzsj != null) return false;

        return true;
    }

    @Override
    public int hashCode() {
        int result = encapsulationid != null ? encapsulationid.hashCode() : 0;
        result = 31 * result + (scpc != null ? scpc.hashCode() : 0);
        result = 31 * result + (encapsulationsortid != null ? encapsulationsortid.hashCode() : 0);
        result = 31 * result + (bakebeantotal != null ? bakebeantotal.hashCode() : 0);
        result = 31 * result + (bcdbdid != null ? bcdbdid.hashCode() : 0);
        result = 31 * result + (bcmc != null ? bcmc.hashCode() : 0);
        result = 31 * result + (bcsl != null ? bcsl.hashCode() : 0);
        result = 31 * result + (cpsl != null ? cpsl.hashCode() : 0);
        result = 31 * result + (fzry != null ? fzry.hashCode() : 0);
        result = 31 * result + (proid != null ? proid.hashCode() : 0);
        result = 31 * result + (clqk != null ? clqk.hashCode() : 0);
        result = 31 * result + (fzsj != null ? fzsj.hashCode() : 0);
        return result;
    }
}
